(function (){
    function init(){
       
    document.getElementsById("button").addEventListener("onclick",()=>{
       alert('asdasd');
    },false);
   
}
    window.addEventListener("load",init,false);
})();